﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic">
	<!-- Resource dictionary entries should be defined here. -->
	<BorderGapMaskConverter x:Key="BorderGapMaskConverter"/>
	<Style x:Key="GroupBoxSetup" TargetType="{x:Type GroupBox}">
  <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Padding" Value="7" />
        <Setter Property="Width" Value="200" />
        <Setter Property="Height" Value="200" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type GroupBox}">
                    <Grid SnapsToDevicePixels="true" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="751">
                        <Border x:Name="BorderBackground" BorderBrush="#CCCCCC" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="10,10,10,10" OpacityMask="{x:Null}" Background="{DynamicResource BrushGroupBoxBackground}" Margin="0,8,0,0" VerticalAlignment="Stretch"/>
                        <!--Begin Header-->
                        <Border x:Name="Border" Margin="6,0,0,0" CornerRadius="10,10,10,10" Background="#00000000" Width="Auto" HorizontalAlignment="Left" Height="16" VerticalAlignment="Top">
                            <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                                <Label x:Name="PART_RequiredSymbol" Content="*" Foreground="{DynamicResource BrushLabelRequiredFieldForeground}" Style="{DynamicResource ControlFont}" Padding="0" Visibility="Collapsed" Margin="1,4,2,0" VerticalAlignment="Center" />
                                <Label x:Name="Header" Content="{TemplateBinding Header}" HorizontalAlignment="Left" Padding="3,1,3,1" Style="{DynamicResource ControlFont}" Foreground="{DynamicResource BrushGroupBoxForeground}" FontWeight="Bold"/>
                            </StackPanel>
                        </Border>
                        <!--End Header-->
                        <!--Begin Content-->
                        <ContentPresenter x:Name="Content" Margin="7,23,7,7" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Top"/>
                        <!--End Content-->
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="Header" Value="{x:Null}">
                            <Setter Property="Visibility" Value="Hidden" TargetName="Border"/>
                            <Setter Property="Margin" Value="7,15,7,7" TargetName="Content"/>
                        </Trigger>
                        <Trigger Property="Header" Value="">
                            <Setter Property="Visibility" Value="Hidden" TargetName="Border"/>
                            <Setter Property="Margin" Value="7,15,7,7" TargetName="Content"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
	</Style>
</ResourceDictionary>